/**
 * Created by Administrator on 2017/5/24.
 */
/**
 * 数据库的连接
 */
//连接配置
var settings=require("../setting");
//mongoose载入
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
exports.db = mongoose.connect('mongodb://'+settings.host+'/'+settings.db);//；连接数据库
